updated docs with new javascript