cosmetic changes to the code for jslint compliance