reverted the isFunction() and isDefined() refactor PR since you can't pass undefined/undeclared vars to functions in JS
new dist build and examples updates