Add UMD wrapper

This plugin currently relies on window.jQuery. This patch adds a UMD wrapper so that it can be used in environments where jQuery is not a global. e.g. requirejs module with noconflict.