Assign Events Using the HTML DOM