Separated Javascript from HTML