[JS] Router component

Tests completed