modularized spin.js