fixed issue with ready function in ie7