I've come across mentions of a JavaScript library that mimics the console from development tools, but it seems to be elusive on the internet.
There are instances when I deploy my HTML5 + JavaScript application (via Icenium) on a tablet or smartphone running Android or iOS, and specific bugs crop up exclusively on these devices rather than in desktop simulation. Having a functional console on these devices would prove extremely useful in troubleshooting such issues.