Updated for jQuery 1.11.1 compitable.