check for document.readyState
Don’t hard code for Requirejs
Fixes #6
tick version v1.0.4