Use offsetWidth and offsetHeight instead of jQuery's methods