source code for tutorial http://mobile.tutsplus.com/tutorials/mobile-web-apps/jquery-mobile-1-0/?search_index=8