Copied code from Vojita's angular.js repo to make angular.js run on browserstack