javascript scheduler lock events context menu