replace text with javascript's replace from command line