The spy js part of the machine