JS spinner updating