Fix EZP-21661: Implement dependency management solution via requirejs (AMD)
- Fixes according to review