Example of library with angular.js