Polyfill for localStorage in Smart TV