Compile Vector2 with Traceur
Use ECMAScript 6 class syntax for Vector2 object