open source library form define javascript OOP