accomodate firefox for offsetX

This is a fix for problem noted in #5