js adds and removes spin class based on process