Waiting until everything is loaded before executing scripts