You can try the below:
<input type="file" id="myexcelfile"/>
once the user browses the file, then you can get the path as below:
var filepath=document.getElementById("myexcelfile").value;
You can use the "filepath" variable in your code for passing the excel sheet name