Updated.
Removed beginning and ending brackets.
Added data object inside CA globals object.
Commented DB code and added placeholder value.
Moved constant definitions to config.php, added TITLE constant, changed ID acquisition code, attempted to output $countryInfo as JSON, uncommented $.ajax() call (need to revise to use featureData variable, as all pertinent data will be loaded into it—or possibly use get_world.php idea to process the data and add OSM IDs, registered status, etc., and renamed worldData to CA.globals.data.world.
Added all the available old source code.
Added.