Update Javascript demo to reflect new implementation without ===