Demo bundle did not work properly with current MOTECH version

https://trello.com/c/I12pjbJl

Done the following things:
- remove unnecessary js code
- add groovy script to generate header
- fix dependencies