reformatted code
added _getValueForDOM()