better data name transformations depending on jQuery version