Modified JS benchmarks to be runnable by dwarf_runner.py
merge from master