I have been working on a project that required clients be implemented in both Obj-C and JavaScript. They are functionally equivalent. The code base of the Javascript version is close to 20 times smaller and was coded about twice as fast. I much prefer Javascript for UI work.