Test for Accept and Content-Type request headers.
Remove trailing whitespace.
Fix failing test.
Merge pull request #148 from shiau/js-explicit-accept-header

Test for Accept and Content-Type headers.