Portable JavasScript OOP library for entity manipulation