add jasmine specs for uploader, minor changes