function createdafter document ready