A quick fix to jQuery plugin-ify and make AMD/CommonJS module compatible. Shifted some hard-coded selectors into configurable options.