Zend Framework 2 Router's JavaScript implementation