add dom-ready script properly