The body node may not be available if script is loaded in the head part of the document