Added DOMContentLoaded event listener