Yup, I use the same JavaScript algorithm in my store locator sample app. You can see how to use it in context inside an HTML5 / jQuery Mobile app here: https://github.com/timanglade/targets/blob/att/www/index.html#L46-L58
[[49169956765b1c902d69cda0302936926989a0eb-134333525]]