fx.js cleanup