Clone from offical plv8. https://code.google.com/p/plv8js/