Fixed pathnames in js code