Created partial.js implementation