use dom-based routing for js