changed window.name to window['data-name']

For cookies mode, changed window.name to window['data-name'] to avoid collisions with external code that uses the defined DOM property.