uses amdefine for nodejs support