I had been recently working through the training videos and associated labs to get my TCAD certification (which I completed thanks to some free takes associated with the Titanium 2.0 release) and found that one of the little things I had done in my local data lab was pretty nice, and I thought worth sharing. Most languages have ways of being able to execute common code or setting things up--with Java you’ve got Aspects or Injection--but the problem is that you’ve got to add additional technologies to your stack to make things really work. One of the nice things about JavaScript is that the language is so flexible and amazingly robust right out of the box—one of these features is the ability to wrap functions.