cleaned up centrifuge.js