Encapsulated angular-follow.js in a function