fixes for Safari 7 beta, not sure if needed for the final

There was a "DOM exception 25", that the object can't be cloned. With this method, a copy is made before.

I'm not sure, if this is just a problem because of the beta and if they will fix it in the final version again, or if we need this as a permanent solution.