moving js into the html file as external js doesnt work with git preview.