Fixes plugin not working with jquery 1.9. Probably needs more work doing to it.