Javascript error with require.js

I am trying to implement woomark layout in elgg. 

In my start.php, I used following

function pin_theme_init() {
    elgg_register_js('wookmark', 'mod/pin_theme/vendors/js/jquery.wookmark.min.js');
    elgg_load_js('wookmark');
    elgg_extend_view('js/elgg', 'pin_theme/js');
}

In my mod/pin_theme/views/default/pin_theme/js.php I added following

$(document).ready(function() {
    var handler = $('.elgg-list-river li');
    handler.wookmark({
        // Prepare layout options.
        autoResize: true, // This will auto-update the layout when the browser window is resized.
        offset: 5, // Optional, the distance between grid items
        outerOffset: 10, // Optional, the distance to the containers border
        itemWidth: 220 // Optional, the width of a grid item
    });
});

But I am getting Uncaught object require-1.2.10.min.js:8 error in console.

This is a plain 1.9 install with all plugins disabled.