fixed chai AMD issue