added new js file to write functions for the pages
added references to the MOJ JS files