Add require.js/AMD support

This follows the pattern from https://github.com/umdjs/umd/blob/master/jqueryPlugin.js