base tutorial / moved clone to general js