Tutorial using javascript to understand ROC curves