fix js filepath issues