update doc and js