file path fallback for js