update js template runtime