Move xhr.send() outside of onreadystatechange function

Oops.