onreadystatechange logic fix
Merge pull request #2 from 350d/master

onreadystatechange logic fix