js to java succeed