A JavaScript implementation for the entangler framework