finished clone.js