Code format cleanup

As per http://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript

Change-Id: Ieb1bdf9716cb20f1653d87e3f1581eb7adfeecb9
Merge "Code format cleanup"