fix GHCJS feature detection