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

Might as well evaluate it inline without ever assigning it.
Merge pull request #25 from Krinkle/patch-1

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