moved obj into doc ready