DOM ready

Changed from window.onload to DOMContentReady