optimized getCategories
removed unused function from groups, jshint
minor cleanup
Merge remote-tracking branch 'origin/master' into webserver.js-refactor