Replace .width( with .outerWidth( to support jQuery >= 1.8

This fix brings good support for jquery >= 1.8 and breaks support for jquery < 1.8.