Make JS stdin read work properly again