Script that extend knockout to format data based on its data type