Bug 1070047 - Upgrade chaijs to a newer version (rebased)

ok, this sounds like an issue in chai; let's move on with this patch and we can think if we can make it better later