small changes + doc js