Updated to work on jQuery 2.0.3