Better solution, using DOMContentReady