Javascript Javascript DOM Event onprogress