I've experimented with having it write javascript functions, yes. It's useful for quickly generating helper functions, but it can be dangerous in the wrong hands because sometimes it takes shortcuts it shouldn't. Like you should NEVER be relying on something like Math.random to generate a private key.
