Working on javascript upload