Fixes #2, naming issue with onVisible and onHidden

Don't think I got the minification options right, but what's a few more characters among friends, right?