Reformat whitespace for relevant JS files

Normalizing whitespace per editorconfig.