Changed to allow for submits via pressing enter in Safari, and restructured to follow Drupal conventions.
Merge pull request #2 from nigelgbanks/7.x.spinny_gif-code-review

7.x.spinny gif code review