[BUGFIX] Loading HTML document might fail
[BUGFIX] Heads and elements are initialized as array instead of object