expose string.js as AMD

Added support for AMD.

I've manually tested this feature with [RequireJS](http://requirejs.org/) and [Dojo Toolkit](http://dojotoolkit.org/), and everything worked as expected.

I'd be glad if you help me to test this! :sweat_smile: