Working on moving stuff to a jQuery plugin for easier use