Separated Javascript from HTML.
Changed title and organization of files.