move javascript inside js file
Merging postreleasefix/78 to master

* postreleasefix/78:
  move javascript inside js file