Fixed common js definition to require spin.js