javascript: optimize constructor allocation
javascript: inline some SLIDEs and PROJECTs
javascript: fix stray semicolon