fixed jslint errors