selectively serve javascript polyfills based on user-agent