minor corrections for jslint compliance