Javascript for update classification