added code to reset DOM from http://meyerweb.com