AMD compatible

Support for spin.js when packaged through RequireJS and thus not
available in the global window.