Change 'ready' event to 'DOMContentLoaded'