Use modernizr to determine which add is rendered. Closes #266
merge