Unobstrusive JS is the way to go, no question about it. I was just bothered to always write

$(document).ready(function() {
   // put all your jQuery goodness in here.

so after a while I found out there is a short cut for that

$(function() {
// do something on document ready

even better seems to be to do it the closure way, to avoid conflicts

(function($) {
    // Plugin code...