Update P2  to use js add js docs