HTML5 DOM save part 1. Small bug regarding JSON parsing. #2