Fix bad line breaking and radix in JavaScript

Fix code that makes JSHint issue warnings about bad
line breaking and missing radix parameter to parseInt.

Change-Id: I3a7cd1b56921a70a5b393df05b30b71332c471ef
Implements: blueprint js-coding-style-checks
Merge "Fix bad line breaking and radix in JavaScript"