[Cosmetic] Whitespace/indentation fixes in JS runtime

I've been looking at the JS runtime to fix some rendering errors I'm having -- my editor is setup to warn me about whitespace inconsistensies, so I thought I'd fix this.

Let me know if pull requests such as these are unwanted.