Style fixes.
Only perform syntax check with .js files.