Fixed failing js unit test after contentType change