Changed localStorage and JSON check to a typeof check for IE 7 compatability

Also commented out a stray console.log