js implementation for delete predictions rows