Make Direct test scripts portable to various JavaScript implementations.
merge MMcM: Make Direct test scripts portable to various JavaScript implementations.

Merge pull request #1294 from MMcM/sql-layer/test-script-direct-portable
https://github.com/FoundationDB/sql-layer/pull/1294