Fixed issue where videojs video was sometimes not 100% width/height of its container.
When a video finishes, close the dialog.
Fixed css issue. Clicking on the chapter div now correctly opens the modal with the video in it.