add some java opertaion javascript API code