adventures in coffeescript for image switcher.