Nearest Neighbour demo page, Angular.js