Fix for ie7 - typeof tests for local storage and json

Signed-off-by: Rogie King <hug@rog.ie>