getting ir commands to the browser