You cant not upload image using javascript because it works on client side.
You should need server side scripting language as php,jsp,ASP.Net.
I think you want to show progress bar while uploading image
see
ASP.NET File Upload with Progress Bar[
^]