Seperated html and js file like a civilized human being