Uncaught TypeError: Cannot read property 'msie' of undefined
If you click the same button a second time, the overlay will load, but I need to fix this so that there aren't any bugs. I've done some research and it looks like this is because $.browser is depreciated as of 1.9.
So I was wondering if there is a way to include jS but to only have it applied to a specific function or maybe only to the 'content' div of the page? I did find hook_init which supposedly runs whatever commands are inside the function as the pages for that specific module are loaded, however it still seems to apply the include to all pages of my Drupal install.