fixed the QUnit conflict. added support for AMD.