Abstract getComputedWidthAndHeight and addClass to work in IE8