Split javascript in .js file and call form .html