issue #4058: test-javascript works.
issue #4058: Bug fix in Scheduler.
issue #4058: Use new API for Scheduler js-bindings.