It looks like, you get some old values to the input.
$('#reberTextfield').keyup(function() { // Check value in textfield
$('#startBtn').on('click', function() { // Submit value if start button is clicked
var value = $('#reberTextfield').val(); // <<<<<<<<<<<<<<< move it here
currentState.dispatch('changeState', [{ type: value }]);
$('#reberTextfield').val(''); // Clear input
});
});
CLICK HERE to find out more related problems solutions.