Switched position <img> tag in ap.js