Code Review

Definitley namespace these.  Something like:

```javascript
var TBS = TBS || {};

TBS.clone = function() {
  // code here
}

You could also take a look at [Underscore.js](http://underscorejs.org/) which handles some of these things.  Underscore has some methods (i.e. `each`) that are big performance hits compared to pure JS, but for clone and uniq, it'll probably be fine.