Incorporated require and AMD stuff