added Javascript examples