Fix Uncaught ReferenceError: cnt is not defined
Bump version to v1.0.2