Fixed a compatability issue with jQuery versions before 1.9 introduced in the previous update (Fixes #82)