added clone function to ar dom and expose to ar