Removed most of the minifiable code: GZip will handle most of it. Using client rect instead of .width() and .height()