Factors out js_tag() and css_tag()