doc and js