Rework sidebar width calculation to work with jQuery 1.8