Rewrote most stuff with jquery mobile