Improved Prototype generation of JavaScript Target