Html Input Type File Javascript Array Find Index