Fix js in template