Added check if local storage exists before setting.
Merge branch 'master' of https://github.com/nickmealey/html5-as-a-platform