remove async defer and add document.ready