Fix FileList bug, Reduce jquery dependency