Remove debugging code from JS.