Fixing bug. Exporting state via DOM element.

When video is playing, and you close the window, position is
saved.

The video state object will be available now in the data
attribute of the main element.