Updating the index and min code
Fixing more circular references in DOM