Fixing jslint mistakes