A simple 3D Vector class for JavaScript.