Moved the field formatting code to js file