tidying up the id pending work javascripts.