Fix text inputs for jQuery Mobile 1.3

This fixes the odd double border issue seen on text inputs. It hasn't been well-tested and I believe a general refactor is needed for 1.3 but it may help some people in the short term.