Fixes infinite loop bug with jQuery v1.10 & v2.0.2

This addresses Issue #114