Agnostic js for languages selector fix