As a jQuery plugin.