update to allow renames when minifying

This updates dirPagination.js to use proper angularjs dependency injection so that minifiers can rename variables without breaking angularjs dependencies.