wwm.lobby = (function (){
	var jqMap;
	var userInfo;
	function setJqMap($con) {
		jqMap = {
			$con: $con,
			$showCreateroom: $con.find('#show-createroom-modal'),
			$searchroomBtn: $con.find('#searchroom-btn'),
			$list: $con.find('#room-list'),
			$logout: $con.find('#logout-btn'),
			$room: $con.find('.room')
		};
	}
	function initModule($con) {
		userInfo = JSON.parse(localStorage.login);
		console.log('lobby', localStorage.login);
		var src = document.getElementById('wwm-lobby').textContent;
		console.log(src);
		console.log(userInfo.properties.nickname);	dust.render(dust.loadSource(dust.compile(src)), {
			name: userInfo.properties.nickname
		}, function(err, out) {
			console.log(out);
			$con.html(out);
		});
		setJqMap($con);
		getList();
		jqMap.$showCreateroom.click(showCreateroom);
		jqMap.$searchroomBtn.click(onSearchRoom);
		jqMap.$logout.click(logout);
		jqMap.$room.click(enterRoom);
	}
	function showCreateroom() {
		wwm.modal.initModule($('#wwm-createroom'));
	}
	function getList() {
		$.get('/roomlist').done(function(res){
			jqMap.$list.html();
		});
	}
	function changeList(data) {
		var $frag = $(document.createDocumentFragment());
		jqMap.$list.html();
	}
	function onSearchRoom (query) {
		$.get('/search/' + query, function(res) {
			changeList(res);
		});
	}
	function logout() {
		localStorage.removeItem('login');
		location.href = '/logout';
	}
	function enterRoom() {
		wwm.room.initModule(jqMap.$con);
	}
	return {
		initModule: initModule
	};
}());

@@ -716,21 +716,16 @@
 (out);%0A%09
-%09%7D);%0A
 %09%09setJqM
@@ -736,16 +736,17 @@
 con);%0A%09%09
+%09
 getList(
@@ -748,16 +748,17 @@
 List();%0A
+%09
 %09%09jqMap.
@@ -792,24 +792,25 @@
 reateroom);%0A
+%09
 %09%09jqMap.$sea
@@ -839,24 +839,25 @@
 rchRoom);%0A%09%09
+%09
 jqMap.$logou
@@ -871,24 +871,25 @@
 (logout);%0A%09%09
+%09
 jqMap.$room.
@@ -906,16 +906,22 @@
 rRoom);%0A
+%09%09%7D);%0A
 %09%7D%0A%09func

move functions into callback