initial javascript file upload

This is one of my first full-blown attempts at a complex object-oriented page of my own creation.