Changes javascript animation of words