Make asap work in browsers as well as node.

I converted ProcScript to use asap but got an exception when testing it in the Chrome browser.  I borrowed the code that checks for module support from the old _nextTick code.