Added polyfill for offsetX in Firefox