Update geymed.js

event handling bug