remove error in js files