Initial work on the DOM extension and adding necessary additional extensions