adding 2 Javascript examples