added package.json
added grunt task for minifing files
minified client.js
check same origin
moved code from index.html into seperate file again
added build step for minifying