Merge from CloCkWeRX, and make autoBounds actually work. Revert to support jquery 1.9