trying window.onload instead of Timeout