fixed the file support for android
added file input functionality to ios
implemented emscripten's file reader