fixed jslint problems