the JS out of HTML and create a new JS