pared down html and wrote js for compiling templates