add warn on js