Fix rankScenario.js.

This patch fixes style, jslint, indent.