Html Input Type File Javascript Substring From Right