added dialogues, animations and reorganized js