A simple 2D Vector class for javascript.