change docReady to window.onload
remove console.logs for IE