Pass Spinner in CommonJS environment