Deletion of repeating JS