jslint code style improvements