updated docs + js