JavaScript external library interop