Moved clientside code to public directory, updated server.js