added JavaScript demo