Convert to a jQuery plugin
Naming and styling