You can enable JavaScript on your iPhone in the Safari section of the Settings app. If JavaScript isn't turned on, many websites will appear broken in your Safari ...
Medialets today released the results of JavaScript benchmark tests performed using the SunSpider test suite on the iPhone 3G and 3GS, the T-Mobile G1 running Android, and the Palm Pre running webOS.