Clean code

- Fix trailing spaces
- Add missing colons
- Add missing var
- Remove unused var
Use node.textContext instead of innerText

Differences between these 2 attributes:

- textContent gets the content of all elements
  (including <script> and <style> elements), innerText does not.
- innerText is aware of style and will not return the text of hidden
  elements, whereas textContent will.
- As innerText is aware of CSS styling, it will trigger a reflow,
  whereas textContent will not.

From this page:
https://developer.mozilla.org/en-US/docs/Web/API/node.textContent
Use <img data-src=""> instead of <img src="">

The “src” attribute is automatically populated using the content
of the “data-src” attribute _after_ the generation.
This hack is made to avoid browser to try loading the image at a bad
url (the query).