Split HTML and javascript into separate files