Changed the clone operation to Object.create()