add routes to js