changed blackberry.event to document