javascript game part vector class updated

Turns out prototyping the value objects does wonders for performance. Not network latency though.