File Transfer Calculator in HTML5 & JavaScript