remove unused traversal method
detect use of `$.Deferred()` without args or `new`

- also refactored similar conditions into shared function
- fixes #2