Wrote the javascript needed to transform server response to cleaned up data