JavaScript demo