add logic for modernizr tag