Moved most of js to separate file; created div for upload buttons