Move click event listener after page loads.