jquery method that writes various properties like data, selected item, to their DOM counterpart