separate js

js in a file. different functions to display