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

we don't need this function if we bundle the new chai, right?