No need for the extra parenthesis around `($caption.is(':visible'))`. You can just do:

    if ($caption.is(':visible') && !paused) {
    }

You also have an some extra spaces here inside the condition and before the opening bracket that can be removed, but that's a nit.