I downloaded a jQuery Lightbox2 library (not module, just a raw library) and added the following in my custom module:
drupal_add_js($libpath . '/js/jquery-ui-1.8.18.custom.min.js');
drupal_add_js($libpath . '/js/jquery.smooth-scroll.min.js');
drupal_add_js($libpath . '/js/lightbox.js');
But it causes an error like this (see below debug printscreen):
Could someone tell me, what to do to get rid of the error?
After some googling I installed the JQuery Dollar module but the error is still there. No clue what else to do.