I'm not sure this belongs here at all, the rest of the logic dealing with favorites is defined in starred.js .  If we create a separate module for favorite logic, that would be a good place to put this.