small code for learning javascript