Working as a jQuery plugin.