var userexperience = new experience(); userexperience.personalize("hammocks", (directive, revive) => { if (!directive.preexistant) { var relaxation = new directive("revive your love for relaxation by not neglecting the joy hammocks can bring into your personal space."); } });