cleanup js err