This simplified code shows you how the typing symbol hack works. The symbolTyper library was built from this prototype and works with the same hacks. + are replaced by * are replaced by