Fixes #2, name of callback var in on* functions corrected
updated minified version with fix
Merge pull request #3 from andyperlitch/naming_issue

Fixes #2, naming issue with onVisible and onHidden