replace typeof with isFunction method
add start repeat done progress method
update test page
add more comment and more method
added unit test page