Added code execution block when DOMContentLoaded.