create spinner js file