Setup spec helper for javascript drivers.

[Fixes #3008]