Added addPoints* functions in points.js.