Added generic AMD module for cookie