Adding reference to DOM in index