You've seen the level of responses from ChatGPT, right? And that's the pinnacle of today's AI research. JavaScript is... well, lets just say it's NOT the pinnacle of anything. You sure you want the JS runtime to define the function for you?