avoid js while replacing data