Fixed event handler, added Zepto error detection