pre-group enabled

- optimized class functions
- found way to manage connection of php and JS: via JSON
- working rating and managing page