Fixed an issue with classes being removed from existing markup. Changed js to use outerWidth and outerHeight.