Had too much trouble writing this thing in meteor, just redoing it in node/angular