isNaN will not increase counter
cleaned up code
Merge pull request #3 from ichibangaijin/master

just need to show on gh-pages