Separating out gallery init behavior and modifying markup for related videos to allow ajax loading.