Refactoring: Moved js initialiazation routines into the imscp.js file +++
(cherry picked from commit f1ca9d1)
(cherry picked from commit 5014f1a)