remove isFunction method, and use `typeof` instead
fix logic about loading timeout for a certain module
fix isFunction