Added true flag to addEventListener for event DOMContentLoaded.