deletes un-needed JS stuff