Use add_routes and simplify js files.