v1.2.7 Updated for jQuery 1.9.0