how to learn javascript from documentation