for drawing canvas, getting mouse location with layerX and layerY, rather than offsetX and offsetY, now works in firefox