Moved updateSplines to the prototype, see #249