jQuery 1.9

Plugin doesn't work with latest jquery. This seems to sort it but probably needs further investigation.