made MDN script work on root pages