Fixed to work with newer versions of plv8.