Split out index.html/js further