added js for spinner