add document ready function