Reformated dom_query_js.html to use events to change the html