fixed: added "value" check to addButtonClick JS

had the check for value in wrong place and was well just wrong, sorry. no more late night git'n for me.