From the question:
$('#success').click(notification('success', 'this was a success!'));
This should be:
$('#success').click(function() {
notification('success', 'this was a success!');
});
Your JSFiddle has:
$('#success').click(function() {
notification('success', 'this was a success!'));
});
which, with the ))
at the end of the middle line, is a syntax error.