Sample JavaScript programs