add country/state dropdown js

and remove outdated js functions