document ready outside sc. initialize client id