Changed file upload to async javascript

This should help for the merging of the upload and the splicing pages.