get fileid from window.location.pathname here