added one example in vanilla javascript