Html Input Type File Javascript Substring