An angular.js wrapper for script.js