Tweak js paths

I think /build/ can be adjusted too, using cwd parameters, but haven’t
tested it so far.