pulled from github
jscs and jshint validated