use drupal_add_js/css instead of library because of unknown bug
add debug statements
fix resize issue when overlay has loaded