Added support for firefox

Firefox cannot serialize filelist at the moment, i was able to
circumwent it by creating an array of file objects instead