Merging js into html screen