Changed data format to `{ x, y }` where `x` is time in milliseconds

This PR includes the previous ones (some of them were rejected, so this might require manual merge).
Just return it, no need for var name.