Adding rank to test and reformatting file

Fixing the jslint warnings I think make sense in this context.