Code generation tool for basic Javascript OOP via prototypes