Update points.js

The x & y positions referred to in line 41 weren't defined, so added them after defining pos.