Does the iPhone support Javascript?
Yes, straight from the mouth of Steve Jobs is the indication that Javascript is built into the iPhone.
This offers a much more expansive mobile web browsing experience vs. mobile browsers which do not suport Javascript.