Regression in spin.js