Update index.js

Update to use global protractor