Made index.js angular 1.3 compatible.