Adding seralizeValue and deseralizeValue to data attribute