Html Input Type File Javascript Foreach With Index