working without mobile library
changed to work with jquery mobile