Made wrapAround a parameter
Refactored code
Moved function
Updated arr.js