fix filepath to js