Fixed query problem: .on & working on basic lobby-game functionality

.on was introduced in jquery 1.7.0