Fix url in js to check file.