update gen-js for new router models