move js script into a new file