Fixed some jslint errors