refactoring, add jquery mobile for device.html
templater