The problem was that I tried to send the following string into the
function:
"<value>0.4</value>"
When echoing the value and viewing the results in IE, IE parsed <value>
as an HTML tag, and only showed '0.4'. I changed headeren to return
text/plain document, and I realised the problem this way.