Object-oriented Layer for JavaScript