fix js template as well