Deep Copy Implementation for #6
completed javascripted and ready to close #6