gather multiple method calls to one call
use $.isWindow and $.isFunction
reduce redundancy
uglify again
Merge pull request #8 from shinnn/master

extract overlaps and collect them together, and use jQuery's built-in method for type checking