Favor early returns

Modified code to return early on pass/fail conditions.
Update CSSClass.js

fix typo
Merge pull request #13 from tracker1/patch-1

Favor early returns