Fixing calls to jQuery outerWidth and outerHeight

Resubmitting  #916 on the dev branch