Js template model