Fixed linting issues with "ready" function.