Modified index view and js functions to pull country origin by code