Catch the JS template as well.

Follow-up to 475e72c1376e28249a09976948b364ea4925f560