adds DOMContentLoaded event listener, white spaces