port the file-open dialog to reactjs