fixed java to javascript array