angularJs book: example paginator fix CORS issue