Also on the page @MaBe mentions is :
http://www.espruino.com/pronto
http://irdb.tk contains a list of common remote control codes for different devices.
So you can look up your tv, get the code and try using the pronto library...
@Wilberforce started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Also on the page @MaBe mentions is :
http://www.espruino.com/pronto
http://irdb.tk contains a list of common remote control codes for different devices.
So you can look up your tv, get the code and try using the pronto library...