OOP library extracted from Backbone