Massive move to inlined Javascript in Kinetic.h