You have a typo - it should be "responseText" not "responsetext", plus you need to test that there is a response and it's "OK" before you try doing anything with it:

...