Fix syntax highlighting when javascript is present in template