rmoving unused js code to kill isolated js error