Updating url of spin.js