added JSON2 for old browser support