Change application/javascript to text/javascript
Rewrite rotator, now with specs and jsHint green