First shot at writing a jQuery plugin. Certainly not production ready at this point, though it works.