use clone from prototype.js