cleanup js variation