Fix issue where youtube video would continue to play on resources page after modal was closed