Updated to use floating point calculations rather than jQuery's automatic rounding in the width() function. Also added a callback with the new child and container widths (based on floating point calculations)