Moved javascript and removed boilerplate html code