Fixing calls to jQuery outerWidth and outerHeight