i'd move to the bottom after `wrap = function() { }, undef = 'undefined';`, looks a little untidy up here but i agree, more than 2 uses of it should have it cached.