switching from eval to JSON.parse