Eliminate dependency on jQuery to clone objects

Fixes #7