js prototype object, event.data