clean angular junk out of data before saving it