javascripts - refactoring
Smarty function wgroup_add - fix
https://github.com/altocms/altocms/issues/111