Update jquery.pull-to-refresh.js

Fixed some bugs... Cross-platform compatibility and jQuery event handler