replace function from javascript