This file shows how to 1) create a side window with specified attributes (size, etc.) with Javascript and 2) generate a switch. See the picture below

Here is a script to stamp date