made sourcegraph.js runnable