added native html5 file reader function