Update app.js

Add loader after changing the image (prevent blank space)