Stop adding 'undefined' to input when clicking things