make them into jQuery plugin.