fixed JSON parse crash and removed unused broswer code