Temporary script fix until angular.js replacement is implemented