Convert to jQuery mobile format