Javascript version of a DTMF generator