changed onreadystate to onload and added onerror
Merge branch 'wip' of https://github.com/myster0n/elem.js into wip