move JS templates into index.html