move image switcher script out of base.js and into app.js