Changed mouseevent.offsetX/Y to layerX/Y for cross browser compatibility

see https://www.pivotaltracker.com/n/projects/1103712/stories/74385848