refactoring $tx.throttle method