start JSON.parse, some tests, local vars scope problem