Add support for Asynchronous Module Definition (AMD) API

I just change the file js/lib/beautify.js for add support for AMD.
See http://requirejs.org/docs/whyamd.html