add Function.prototype.partial to javascript.js