Update spinner.js

Added paused attribute and toggle method