Ah thank you! This was the solution. My function was not in $w.onReady.
Once I put it into my onReady function the error went away thank you!
Ah thank you! This was the solution. My function was not in $w.onReady.
Once I put it into my onReady function the error went away thank you!