fix path to js in templates