Migrate templates to jquery mobile 1.4