JavaScript programs for online course