refactored client js code
fixed path to js file
moved socket.io code into separate file
fixed viewport meta tag