acceptWords add in js