update index.js to not require module