fixing some jslint errors