n.js is a library for creating notifications that look exactly like the OS X notification popups. See the Demo for an example. See Getting Started to get set up.
Thanks to You Might Not Need jQuery for information on how to use modern web browser features instead of relying on jQuery.