Updating Pluging to work with 1.5+ & namespace issues

Updating Pluging to work with 1.5+ & namespace issues

I've been maintaining a plugin for a couple years (Orange-J). One of the first things I did was to implement a supporting 'clone' function...  with jQuery 1.5's implementation of the clone() function chaos ensued.

There are a few other utility functions I've written to support OJ's main focuses (browser side templating and keystroke behaviors). 

I'm wondering if there's a standardized way for a plugin to implement it's own namespace for functions and methods

ex $oj.clone(obj)
$('#someid').oj.snippet('<somehtml>', jsonObj)

Can someone point me to a tutorial or examples? TIA