Simplified exposing code (to window, amd and node). Moved function outside of loop and named it functionWrapper so the file is lint-free.
Simplified exposing code (to window, amd and node). Moved function outside of loop and named it functionWrapper so the file is lint-free.

DominicTobias/extnd,DominicTobias/extnd