Updated spin.js definition for v1.3.1 of the library

Also expanded tests to cover each option.