Move to swig and JQuery Mobile