put js in a seperate file from html