A non event-based javascript input manager