Java Int Array Find Javascript Errors