using _.isFunction()
speed improvement
added test page