javascript: #1641 add missing primitive