the better nodejs reflect library means we don't need all that fixup code
simplify by using the provided range
simplify text calculation
rearrange so javascript parser isn't stealing code from cheetah parser