conversion of java parameters to js