Avoid errors with RequireJS by naming the module.

If spin.js is loaded after RequireJS has been started and there is already an anonymous module, RequireJS raises an error.

This commit fixes it.