nit: Would make it clearer to have an intermediate var here. Also, why don't you use one querySelector?