Clean up and jQuery 1.9 compatible.