- refactoring
- added addCategory js + php stub