I thought "non-Objective C" languages weren't allowed in the App store, or something like that.
JavaScript in webviews is excepted because you couldn't show a website without that.
If you don't get new code from the Internet (for example, someone types it in) that's ok. It's even ok to copy and paste it from the Internet.