replaced js template by coffescript