expose the routes to js automatically

with this we get rid of all manual configuration of fosjsrouting. thanks for the suggestion @uwej711