I have custom code that is being triggered by a drop down event on the main page. When I tried testing out the library for functionality it worked, but when I tested it again by closing and reopening the drop down it cached the script causing it to run twice, and oddly breaking the functionality. It...