Fixed the clone method and now it also works on Chrome. Also, added a copy method.