[JS] Refactoring
[Java] RouterComponent