Added support for node (server side) and AMD