conversion to jquery-mobile