http://pastebin.com/eRyB0TsL
http://www.testiphone.com/ is crap
make sure the jquery is loading.
test it on a real iphone instead of that website
you could do it in php instead.