updated comment.  changed const to var for old browser compatibility.