A Javascript Implementation of a simple 2D Vector Class