Add support for AMD and Node module pattern