update index.js
add iduri file extension method