CORDOVASIM: Reimplementing LocalStorage fix for JavaFX 2.2 (JDK 7)