javascript add disabled attribute to input