cleanup for webkit