added AMD module definition for use in RequireJS.