Cross-browser implementation of data storage on client-side