Only execute the JS when the DOM has loaded