Fix js error. Add go template stuff.