Expose your routes in JavaScript