added vertex.js for vertex class