Including existing js instead of non-existant minified one
Simplified exposing code (to window, amd and node). Moved function outside of loop and named it functionWrapper so the file is lint-free.