Simple JS feature detection.