js/clapp: set dependency_list to undefined when [] is passed
js/clapp: set  undefined in return_array for external modules
js/clapp: fix calling non-existant callback()