Javascript for PWM (Pulse Width Modulation) to dim a heater

@Colin It's working, I have to do some real tests now. Super. Thanks.

Excellent. Glad you got it going.