Setting up the toggle to build the JS intersation
Wrote the little function now need to write a jasmine test