Yet Another Javascript Model