fix "DataCloneError: DOM Exception 25: An object could not be cloned" in Safari 7