Assorted small Python and JavaScript programs