total rertie of JS with prototypes