javascript client progress