changed js to get resutls on enter too