Added upload dialog and main js file.