Minor code reduction: replaced loop by Array.join()
Added ability to import anonymous or variable bound functions