js asset cleanup