Move JS from template to client.js
Add game play function to game module
Add socket on click callback