http://blog.tokyoace4.com/2011/06/iphonejavascript.html