define(
    [
        'text!templates/index.html',
        'backbone',
        'underscore'
    ],
    function (template, Backbone, _) {
        "use strict";

        return Backbone.View.extend({
            tagName: 'div',
            className: 'row-fluid',
            template: _.template(template),

            events: {
                'click #watch': 'watch'
            },

            initialize: function (options) {
                this.router = options.router;
            },

            render: function () {
                this.$el.html(this.template());
            },

            watch: function (e) {
                e.preventDefault();

                this.router.navigate('/' + this.$('#username').val(), { trigger: true });
            }
        });
    }
);

define(
    [
        'text!templates/index.html',
        'backbone',
        'underscore',
        'jquery'
    ],
    function (template, Backbone, _, $) {
        "use strict";

        return Backbone.View.extend({
            tagName: 'div',
            className: 'row-fluid',
            template: _.template(template),

            events: {
                'click #watch': 'watch'
            },

            initialize: function (options) {
                this.router = options.router;
            },

            render: function () {
                $('body').removeClass('loading');
                this.$el.html(this.template());
            },

            watch: function (e) {
                e.preventDefault();

                this.router.navigate('/' + this.$('#username').val(), { trigger: true });
            }
        });
    }
);

Fix UI bug with loader
Fix UI bug with loader
