Added point labels for curves by adapting Labels.js