Deleted everything, re-writing in node because fuck PHP