Refactored custom/default interstitial html handling into separate functions