extend ki.js with some fancy prototypes