correctly apply jqm styles on rerendering templates