get_routes jquery function added