Rebuild js

Changes made to use prepros to build JS file.
script.js has been rebuild into seperate Js files.
some minor JS changes have been made together with some CSS changes.