Generate Laravel route URLs from JavaScript.