Added files[0].getNative() to make it work with modern browsers.