updated to work with native WordPress jQuery library