Switched the focus left click event to the mask instead of the container to prevent scrollbar issues
Added a couple of missing comments