This is just out of genuine curiosity because I'm interested; why the move to the top for the `ready` function?