An angular factory useful to handle different rAF instances