Whitespace fixes in JavaScript