wrapping the js in a drupal friendly function tag and deleting unused files