added Java code, Js placeholder