update index.js
updated example