updating for jquery and mobile