(almost) 100% invokedynamic js impl