Cupertino.js already supports this. It's currently pre-alpha, but there's a JavaScript iOS app that works in the simulator.