learn javascript onclick and querySelector