John Resig - Partial Application in JavaScript