Output the content-type header in the xhr router so it doesn't need to be included in each of the scripts. Helpful to start writing unit tests
Reformat code so that it remains consistent