source code from book Pro jQuery Mobile