Replace old style v8 version switches.
Make javascript test-suite work with nodejs.