JavaScript Teletext renderer