Add AMD / RequireJS, Node.js and browser compatibility