Using feature detection to conditionally load JavaScript polyfils