fix index.js. non existing mixins & typo in for loop
lastIndexOf undefined variable