Removed document.ready and settimeout