added pause handler & transitionEnd timer workaround + other fixes
prevent multiple clicks
Automatically rewritten for npm.