Bug fix for scrollTop reading in Firefox