Refactored, added a minified version, and made the plugin compatible with multiple instances, each using unique setting objects