fixed resetHash not being parsed as a boolean
added unit tests.js
upped version to 1.0.1 for fixes