Applied fix to destroy error with JQuery 1.9.
Merge pull request #597 from beckstea/JQuery-1.9-Fix

Applied fix to destroy error with JQuery 1.9.