run the script on dom ready code example
Example: document ready without jquery
document.addEventListener("DOMContentLoaded", function(event) {
//we ready baby
});
document.addEventListener("DOMContentLoaded", function(event) {
//we ready baby
});