Added check if localStorage is available. Added code change to compressed core.js.