I was able to get this figured out. I needed to move my code to my footer.
I have deployed an update datapage on Wordpress and the javascript below works fine. However, I deployed it on a Weebly website and it is not working. I have pasted the javascript below and then also the deployment code I put on Weebly. I have other custom javascript that is working on the same datapage, so wondering if the iMask might be the problem?
Javascript in the Datapage:
<script src="[@app:iMask/]"></script>
<script type="text/javascript">
document.addEventL