Modified onProtractor.js