added jquery mobile, rewrote JS with jquery