Java Int Array Find Javascript Array Length