var LobbyView = View.extend({ el: "#lobby", events: { "submit form": "join" }, initialize: function(){ this.$createRoom = this.$("#create-room") }, join: function(e){ console.log("hwat") e && e.preventDefault() var name = this.$createRoom.sanitizeName() console.log("name") if (! name) { return } window.location.href = "/v/" + name } })