Regular expression replace during karma preprocessing