modularized indexOf and fixed missing reference in rootScope.js
0.2.3