By changing from native cocoa (Objective-C) to NodObjC you can create the window and use webkit while at the same type, starting and running the needed code, as both are going to be written using javascript:
http://tootallnate.github.io/NodObjC/
This will definitely "fix" the odds of today's TermKit