project to learn javascript(in pure javascript)