Web Json Parser Javascript Interview Question