fixing javascript for country limit.