(function($) { var app = $.sammy('#container', function() { }); $(function() { app.run(); }); })(jQuery);