(function ($) { $(function () { console.log("in timesheets %o", bts()); }); })(jQuery);