Html Input Type File Javascript Foreach