Question: I have a Javascript iteration/Regex expression that's been driving me insane and was hoping someone could provide some insight, as the challenge I'm running into seems to be something peculiar to JS. As you can see, the regex expression I have checks to see if the letter occurs 2 or more times in the string and if it doesn't then returns the letter at the specified index. However, for a string such as "testing" it will return "t" despite "t" existing twice in the string. Yet, other strings, such as "aaaaac" it will correctly return "c". I've tested it in Rubular and the Regex expression works fine, so I haven't been able to determine why it won't work in this context. 

```
function found (str) {
  for (const number in str) {
    let regex = new RegExp( str[number] + "{2,}");
    if (!str.match(regex)) {
      return str[number]
    }
  }
}

```

I would greatly appreciate any insight that could be offered!

Answer: 
Finally found the solution:

Include jquery in `index.html`:

```
<body>
  <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
  <div id="app"></div>
  <!-- inject:js -->
  <script src="/js/build.js"></script>
  <!-- endinject -->
</body>

```

and import/require bootstrap in the vue component `Chart.vue`:

```
<template>
    <div id="chart"></div>
</template>
<script type="text/javascript">
  var d3 = require('d3');
  var Plottable = require('plottable');
  var bootstrap = require('bootstrap');

...

```

The method that creates & updates tooltips now works as expected.
It seems that you're making the ajax requests to these JS files however you're not doing anything with the response? 
A better way to do this would be 

1. download the files locally
2. put them in the same directory as your single file component
3. import the local files right above your component

```

```
<script>
  // assuming you're using a transpiler? use appropriate syntax here
  import './popper.min'
  import './bootstrap.min';

  var vm = new Vue({
  el: '#app',
  data: {
    data_2017: [{
    x: '6th Grade',
    y: 12
  }, // ...

```

```