Make plugin AMD aware (works perfectly with requirejs and its optimizer now)

This plugin previous didn't work with RequireJS when its optimizer is used. It had to do with executing things out of order, even when DataTables was specified to load first and have this plugin be its dependent. Wrapping the plugin with the necessary code to made it AMD aware solves this issue.