add index.js file and depedencies
add util function in index.js