remove the spinner with JS code