Changed JavaScript Class Scheme

-Figured out a few thing about private and public JavaScript Class, and applied it to my classes

-Fixed upload function such that, you can't send the files you have already sent.
-Once you send a set of files and try to drop more files, it resets the list