Fixes infinite loop bug with jQuery v1.10

This addresses Issue #114