moving array of onreadystatechange functions