move javascript inside js file
Merging postreleasefix/78 to release/78

* postreleasefix/78:
  move javascript inside js file