Small code layout change in the javascript bits