updated index & name spaced main.js