Add try/catch block over JSON.parse