moved index.js to example.js