Separated giant html file into template html files