Skeleton for DOM event handlers