Multiple instances added (turned out nesting non-static objects in a OOP prototype causes problems in js)