JavaScript "CLOS" (sketch)