I\'m really not sure if this is possible in Javascript. Here\'s my function: var tree = function(name, callback) {