Changing javascript for new country formats