refactor panels/languages/panel.js