Remove old debugging code from js