using javascript to learn javascript