An offset filter for AngularJS