refactoring js code
Merge pull request #383 from hellsingblack/master

Issue #340 Posting in a group does not pre-select the group in the combo box.