Fixed jshint, jscs validation. Corrected spelling mistakes.