Private/newapi

update javascript