moved main to index. creating totes.js as browserified version