js cleanup, perhaps confused, on road to separation of gen from gui; plus some html/css