Fixes #463 - cuddles JavaScript braces

There are edge cases with automatic semicolon insertion that could
introduce bugs if the JS braces aren’t cuddling. This commit sets all
braces to cuddle in the JavaScript files.