changes for: input, structur, gruntfile

* input is now done in one line (introduced a bug)
* javascript code got organized in single files
* gruntfile got updated to concat the javascript