use ‘DOMContentLoaded' instead of ‘ready’