cleanup js errors