update index.js for link