js: EOF newlines in all files

Applies to new and changed files only.

Closes #7