Convert harness to js