Fixed initialization flag for client side JS library