main.js: Remove one-off 'img' variable

Might as well evaluate it inline without ever assigning it.