fix paths in JS binary