Split into an html and js file