parsing JSON by JSON.parse() instead of using eval()