converted centrifuge.js to AMD module and got tests to run