Fixed jslint reported issues