Make them into jQuery plugin.