start of work on upload handler js