Add blockAds check to javascript bootstrap