Fixing some jslint issues