Wrap scripts in document.ready