call js public and private