Align timing of captions with show/hide controls.

This is a re-work of https://github.com/johndyer/mediaelement/pull/358