Did you know ... Search Documentation:
Accessing JavaScript from Prolog