javascript: add newtask, onclick toogleclass