Tidy up image-rotator.js