added 'complete' alongside 'interactive' for DOM readyState