JSON, JavaScript functions