add js private methods post