Only parse JS files

If the transform relies on valid JS syntax it should ensure it's parsing a JS file.