Javascript Tools provides a common set of methods extending those available in Drupal core (drupal.js) for Javascript and AJAX module development in Drupal.
Link to a PDF taking about which JS Frameworks help against JS hijacking and how JS hijacking works
Prototype is a JavaScript framework that aims to ease development of dynamic web applications.