JS fucntion to generate PCM htlm src code