Revert "JS: small speed improvement for typescript.js of ~1%"
Revert "JS: small speed improvement for typescript.js of ~1%"

This reverts commit e24703525b7a62a9f54dba5a15a79b875f3bfa27.

tdewolff/parse